// 云函数入口文件
const createMusic = require('./lib/createMusic')
const queryMusic = require('./lib/queryMusic')

// 云函数入口函数
exports.main = async (event, context) => {
    switch (event.action) {
        case 'createMusic': {
            return createMusic(event)
        }
        case 'queryMusic': {
            return queryMusic()
        }
        default: {
            return {}
        }
    }
}